package gui;

import javax.swing.ImageIcon;

import domain.Resource;
import domain.Walkable;
import files.FileManager;

public enum ForegroundType {
	
	EMPTY("", Resource.EMPTY, Walkable.BACK);
	
	private String texture;
	private ImageIcon img;
	public Resource r;
	public Walkable w;
	
	ForegroundType(String texture, Resource r, Walkable w){
		this.texture = texture;
		this.r = r;
		this.w = w;
	}
	
	public boolean mineable(){
		return r != Resource.EMPTY;
	}
	
	public boolean solid(){
		return w == Walkable.SOLID;
	}
	
	public ImageIcon getTexture(){
		return img;
	}
	
}
